package com.koko.mapper;

import com.koko.user.dto.RegisterDTO;
import com.koko.user.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {

    User getById(Long id);

    User getByUsernameOrEmail(String userNameOrEmail);

    void insert(User user);

    Integer checkIfExists(RegisterDTO registerDTO);

    List<User> getFriendsListByUserId(String usernameOrNickname, Long userId);

    void update(User user);
}
